﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;

namespace BUS
{
    public class FriendshipBUS
    {
        FriendshipDAO friendshipDAO = new FriendshipDAO();

        public IEnumerable<User> GetFriendByUserId(int userId)
        {
            return friendshipDAO.GetFriendByUserId(userId);
        }

        public bool AddFriendship(int userId, string friendName)
        {
            return friendshipDAO.AddFriendship(userId, friendName);
        }

        public bool DeleteFriendship(int userId, string friendName)
        {
            return friendshipDAO.DeleteFriendship(userId, friendName);
        }

        public bool ImportFriend(string userName, string password, int userId)
        {
            return friendshipDAO.ImportFriend(userName, password, userId);
        }
    }
}
